package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import com.qf.pojo.DtsGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DtsGoodsServiceImpl implements DtsGoodsService{
    @Autowired
    private DtsGoodsMapper goodsMapper;

    /**
     * 获取所有物品总数，包括在售的和下架的，但是不包括已删除的商品
     *
     * @return
     */
    @Override
    public int count() {

        Integer count = goodsMapper.selectCount(null);
        return count;
    }
}
